package com.sky.mapper;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {


    ShoppingCart list(ShoppingCart shoppingCart);

    void update(ShoppingCart carDB);

    void insert(ShoppingCart shoppingCart);

    List<ShoppingCart> getByUserId(Long userId);

    void deleteByUserId(Long userId);

    void deleteByDishId(Long dishId);
}
